/**
 * @公司:公约树
 * @位置:苏州
 * @Classname EasingData
 * @Date 2022-05-30 下午 11:27
 * @Created by hanWanLu
 * @auther 中文:韩万路
 */


package com.animeJava.core;

/**
 * 动画贝塞尔曲线格式
 */
public class EasingData {

    private final double inX = 0;
    private final double inY = 0;
    private final double toX = 1;
    private final double toY = 1;

    private double x1;
    private double y1;
    private double x2;
    private double y2;

    private Double x1_1 = null;
    private Double y1_1 = null;

    public EasingData() {
    }

    public EasingData(double x1, double y1, double x2, double y2) {
        this.x1 = x1;
        this.y1 = y1;
        this.x2 = x2;
        this.y2 = y2;
    }

    public EasingData(double x1, double y1, Double x1_1 , Double y1_1 , double x2, double y2) {
        this.x1 = x1;
        this.y1 = y1;
        this.x1_1 = x1_1;
        this.y1_1 = y1_1;
        this.x2 = x2;
        this.y2 = y2;
    }

    public double getX1() {
        return x1;
    }

    public void setX1(double x1) {
        this.x1 = x1;
    }

    public double getY1() {
        return y1;
    }

    public void setY1(double y1) {
        this.y1 = y1;
    }

    public double getX2() {
        return x2;
    }

    public void setX2(double x2) {
        this.x2 = x2;
    }

    public double getY2() {
        return y2;
    }

    public void setY2(double y2) {
        this.y2 = y2;
    }

    public Double getX1_1() {
        return x1_1;
    }

    public void setX1_1(Double x1_1) {
        this.x1_1 = x1_1;
    }

    public Double getY1_1() {
        return y1_1;
    }

    public void setY1_1(Double y1_1) {
        this.y1_1 = y1_1;
    }

    public boolean equals(EasingData easingData){
        return this.x1 == easingData.getX1() && this.y1 == easingData.getY1() && this.x2 == easingData.getX2()  && this.y2 == easingData.getY2();
    }


    public double getInX() {
        return inX;
    }

    public double getInY() {
        return inY;
    }

    public double getToX() {
        return toX;
    }

    public double getToY() {
        return toY;
    }
}
